2000W / 48V LLC Battery-Charger  V1.00
xmc_vadc.c File Reference
#include <xmc_vadc.h>
Include dependency graph for xmc_vadc.c:

Go to the source code of this file.

Macros

#define XMC_VADC_MAX_ICLASS_SET   (2U)
 
#define XMC_VADC_NUM_EMUX_INTERFACES   (2U)
 
#define XMC_VADC_RESULT_LEFT_ALIGN_10BIT   (2U)
 
#define XMC_VADC_SYNCTR_START_LOCATION   (3U)
 

Functions

void XMC_VADC_GLOBAL_EnableModule (void)
 
void XMC_VADC_GLOBAL_DisableModule (void)
 
void XMC_VADC_GLOBAL_Init (XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_GLOBAL_CONFIG_t *config)
 
void XMC_VADC_GLOBAL_InputClassInit (XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_GLOBAL_CLASS_t config, const XMC_VADC_GROUP_CONV_t conv_type, const uint32_t set_num)
 
void XMC_VADC_GLOBAL_StartupCalibration (XMC_VADC_GLOBAL_t *const global_ptr)
 
void XMC_VADC_GLOBAL_SetCompareValue (XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_RESULT_SIZE_t compare_val)
 
XMC_VADC_FAST_COMPARE_t XMC_VADC_GLOBAL_GetCompareResult (XMC_VADC_GLOBAL_t *const global_ptr)
 
void XMC_VADC_GLOBAL_SetResultEventInterruptNode (XMC_VADC_GLOBAL_t *const global_ptr, XMC_VADC_SR_t sr)
 
void XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode (XMC_VADC_GLOBAL_t *const global_ptr, XMC_VADC_SR_t sr)
 
void XMC_VADC_GLOBAL_BackgroundInit (XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_BACKGROUND_CONFIG_t *config)
 
void XMC_VADC_GLOBAL_BackgroundSelectTrigger (XMC_VADC_GLOBAL_t *const global_ptr, const uint32_t input_num)
 
void XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge (XMC_VADC_GLOBAL_t *const global_ptr, const XMC_VADC_TRIGGER_EDGE_t trigger_edge)
 
void XMC_VADC_GLOBAL_BackgroundSelectGating (XMC_VADC_GLOBAL_t *const global_ptr, const uint32_t input_num)
 
void XMC_VADC_GLOBAL_BackgroundAbortSequence (XMC_VADC_GLOBAL_t *const global_ptr)
 
uint32_t XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending (XMC_VADC_GLOBAL_t *const global_ptr)
 

Detailed Description

Date
2016-06-17

Definition in file xmc_vadc.c.

Macro Definition Documentation

◆ XMC_VADC_MAX_ICLASS_SET

#define XMC_VADC_MAX_ICLASS_SET   (2U)

Defines the maximum number of conversion parameter sets

Definition at line 104 of file xmc_vadc.c.

Referenced by XMC_VADC_GLOBAL_InputClassInit().

◆ XMC_VADC_NUM_EMUX_INTERFACES

#define XMC_VADC_NUM_EMUX_INTERFACES   (2U)

Defines the maximum number of external multiplexer interfaces

Definition at line 105 of file xmc_vadc.c.

◆ XMC_VADC_RESULT_LEFT_ALIGN_10BIT

#define XMC_VADC_RESULT_LEFT_ALIGN_10BIT   (2U)

Defines the 10 bit converted result register left align mask. It \ is used in the XMC_VADC_GLOBAL_SetCompareValue() API

Definition at line 107 of file xmc_vadc.c.

Referenced by XMC_VADC_GLOBAL_SetCompareValue().

◆ XMC_VADC_SYNCTR_START_LOCATION

#define XMC_VADC_SYNCTR_START_LOCATION   (3U)

Defines the location in SYNCTR needed for calculations

Definition at line 111 of file xmc_vadc.c.